/*
 * @(#)CookieConfig.java $version 2010. 8. 11
 *
 * Copyright 2007-2010 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nhncorp.usf.core.config;

import java.util.ArrayList;
import java.util.List;

import com.nhncorp.usf.core.web.CookiePattern;

/**
 * @author Web Platform Development Team
 */
public class CookieConfig {
    List<CookiePattern> cookiePatterns;

    /**
     * Gets the cookie patterns.
     *
     * @return the cookie patterns
     */
    public List<CookiePattern> getCookiePatterns() {
        return cookiePatterns;
    }

    /**
     * Sets the cookie patterns.
     *
     * @param cookiePatterns the new cookie patterns
     */
    public void setCookiePatterns(List<CookiePattern> cookiePatterns) {
        this.cookiePatterns = cookiePatterns;
    }

    /**
     * Adds the cookie pattern.
     *
     * @param cookiePattern the cookie pattern
     */
    public void addCookiePattern(CookiePattern cookiePattern) {
        if (cookiePatterns == null) {
            cookiePatterns = new ArrayList<CookiePattern>();
        }

        this.cookiePatterns.add(cookiePattern);
    }
}
